<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    let a = 10,
        b = 20,
        c = 30;
    let max, min;
    console.log(a, b, '最大值 ', a > b ? a : b)
    console.log(a, b, '最小值 ', a > b ? b : a)

    max = (a > b ? a : b)
    max = (max > c ? max : c)
    console.log(a, b, c, max);
</script>

</html>